<%if @repo -%>
# cvmfs <%= @repo -%>.local file installed with puppet.
# this files overrides and extends the values contained
# within the <%= @repo -%>.conf file.
<% else -%>
# cvmfs default.local file installed with puppet.
# this files overrides and extends the values contained
# within the default.conf file.
<% end -%>

<% if @my_cvmfs_quota_limit and  @my_cvmfs_quota_limit != '' -%>
CVMFS_QUOTA_LIMIT='<%= @my_cvmfs_quota_limit %>'
<% end -%>
<% if @cvmfs_http_proxy and  @cvmfs_http_proxy != '' -%>
CVMFS_HTTP_PROXY='<%= @cvmfs_http_proxy %>'
<% end -%>
<% if @cvmfs_cache_base and  @cvmfs_cache_base != '' -%>
CVMFS_CACHE_BASE='<%= @cvmfs_cache_base %>'
<% end -%>
<% if @cvmfs_server_url and @cvmfs_server_url != '' -%>
CVMFS_SERVER_URL='<%= @cvmfs_server_url %>'
<% end -%>
<% if @cvmfs_timeout and  @cvmfs_timeout != '' -%>
CVMFS_TIMEOUT='<%= @cvmfs_timeout %>'
<% end -%>
<% if @cvmfs_timeout_direct and  @cvmfs_timeout_direct != '' -%>
CVMFS_TIMEOUT_DIRECT='<%= @cvmfs_timeout_direct %>'
<% end -%>
<% if @cvmfs_nfiles and  @cvmfs_nfiles != '' -%>
CVMFS_NFILES='<%= @cvmfs_nfiles %>'
<% end -%>
<% if @cvmfs_public_key and @cvmfs_public_key != '' -%>
CVMFS_PUBLIC_KEY='<%= @cvmfs_public_key %>'
<% end -%>
<% @cvmfs_force_signing and  if @cvmfs_force_signing != '' -%>
CVMFS_FORCE_SIGNING='<%= @cvmfs_force_signing %>'
<% end -%>
<% if @cvmfs_syslog_level and  @cvmfs_syslog_level != '' -%>
CVMFS_SYSLOG_LEVEL='<%= @cvmfs_syslog_level %>'
<% end -%>
<% if @cvmfs_tracefile and  @cvmfs_tracefile != '' -%>
CVMFS_TRACEFILE='<%= @cvmfs_tracefile %>'
<% end -%>
<% if @cvmfs_debuglog and @cvmfs_debuglog != '' -%>
CVMFS_DEBUGLOG='<%= @cvmfs_debuglog %>'
<% end -%>
<% if @cvmfs_max_ttl and @cvmfs_max_ttl != '' -%>
CVMFS_MAX_TTL='<%= @cvmfs_max_ttl %>'
<% end -%>
<% if @cvmfs_use_geoapi and @cvmfs_use_geoapi != '' -%>
CVMFS_USE_GEOAPI='<%= @cvmfs_use_geoapi %>'
<% end -%>
<% if @cvmfs_mount_rw and @cmvfs_use_rw != '' -%>
CVMFS_MOUNT_RW=<%= @cvmfs_mount_rw %>
<% end -%>
<% if @cvmfs_follow_redirects -%>
CVMFS_FOLLOW_REDIRECTS='<%= @cvmfs_follow_redirects %>'
<% end -%>
<%if @cvmfs_env_variables -%>
<% @cvmfs_env_variables.each_pair do |var, value| -%>
export <%=var-%>=<%=value%>
<%end-%>
<%end-%>
